<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/12/14/014
 * Time: 15:38
 */

namespace app\api\validate;


class WithdrawValidate extends BaseValidate {
    protected $rule = [
        'account_to_be_credited_type' => 'require|in:1, 2, 3',  //1银行卡 2微信  3支付宝
        'money' => 'require|isPositiveInteger|egt:100',
        'member_bank_id' => 'require|isPositiveInteger'
    ];

    protected $scene = [
        'base_withdraw'  =>  ['account_to_be_credited_type','money'],
        'member_bank_id' => ['member_bank_id'],
    ];
}